home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 123
/
(Vol 123) Jan 13 2011.iso
/
Games
/
bread-cooking.swf
/
scripts
/
DefineSprite_44
/
frame_1
/
PlaceObject2_43_1
/
CLIPACTIONRECORD onClipEvent(mouseDown).as
< prev
Wrap
Text File
|
2011-01-13
|
652b
|
28 lines
onClipEvent(mouseDown){
if(_root.isGameOver)
{
return undefined;
}
if(this.hitTest(_root._xmouse,_root._ymouse,true))
{
if(state == 0)
{
if(_root.cursor.gu_set())
{
startTime = getTimer() + Math.random() * 1000;
state = 1;
this.gotoAndPlay(2);
Mouse.show();
_root.cursor.AddSound();
}
}
else if(state >= 3 and _root.cursor.getState() == 0)
{
_root.cursor.RemoveSound();
this.gotoAndStop("ana");
_root.cursor.tsutsuku(state);
state = 0;
}
}
}